package com.example.javaee_blog.mapper;


import com.example.javaee_blog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where id = #{userId} and delete_flag = 0")
    UserInfo selectById(Integer userId);

    @Select("select * from user where user_name = #{userName} and delete_flag = 0")
    UserInfo selectByName(String userName);
}
